package jt.classic.system.objectquery.init;

import jt.classic.system.ISystemException;
import jt.classic.system.init.AbstractInitializtion;
import jt.classic.system.objectquery.ObjectQueryRegister;
import jt.classic.system.objectquery.QueryOTimer;


/**
 * 对象通用查询注册信息初始化
 *
 * @author mido
 *
 */
public class ObjectQueryInitializtion extends AbstractInitializtion {
    private QueryOTimer qot = new QueryOTimer(-1, -1);

    public void load() throws ISystemException {
        ObjectQueryRegister register = ObjectQueryRegister.getInstance();

        register.init();

        System.err.println("system message: object-query is OK.");

        qot.runTask();
    }

    public void release() throws ISystemException {
        qot.stopTask();
    }
}
